package com.itheima.oop.d6_homework.practise01;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args) {
        GirlFriend girlfriend1 = new GirlFriend();
        girlfriend1.setName("刘亦菲");
        girlfriend1.setHeight(165.0);
        girlfriend1.setWeight(85.0);

        GirlFriend girlfriend2 = new GirlFriend();
        girlfriend2.setName("迪丽热巴");
        girlfriend2.setHeight(175.0);
        girlfriend2.setWeight(90.0);

        //在控制台输出 使用get方法
        System.out.println("===第一个女朋友的信息===");
        System.out.println("我女朋友叫" + girlfriend1.getName() +
                "，身高" + girlfriend1.getHeight() + "厘米，体重" + girlfriend1.getWeight() + "斤");
        System.out.println("===第二个女朋友的信息===");
        System.out.println("我女朋友叫" + girlfriend2.getName() +
                "，身高" + girlfriend2.getHeight() + "厘米，体重" + girlfriend2.getWeight() + "斤");
    }
}
